import Vue from 'vue';
import VueRouter from 'vue-router';
import Home from '../views/home/Home.vue';
import HomeTemplate from '../views/HomeTemplate/HomeTemplate';
import HomeHistory from "../views/HomeHistory/HomeHistory";
import HomeNewdoc from "../views/HomeNewdoc/HomeNewdoc";
import NewTemplate from "../views/NewTemplate/NewTemplate";

Vue.use(VueRouter)

  const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
    redirect: "/HomeTemplate",
    children:[
      {path: 'HomeTemplate', name: 'HomeTemplate', component: HomeTemplate},
      {path: 'HomeHistory', name: 'HomeHistory', component: HomeHistory},
      {path: 'HomeNewdoc', name: 'HomeNewdoc', component: HomeNewdoc},
      {path: 'NewTemplate', name: 'NewTemplate', component: NewTemplate}
    ]
  }
]

const router = new VueRouter({
  routes
})

export default router
